export function formatDate(date) {
    date = new Date(Number(date))
    const year = date.getFullYear()
    const month = date.getMonth() + 1
    const day = date.getDate()
    date = `${year}-${month}-${day}`
    // console.log(date);

    return date
}
// 测试传入时间戳
// console.log(formatDate("1689766400000"));
